home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20031118-20041115
/
000416_fdc@columbia.edu_Tue Oct 19 14:26:12 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Kermit Script Output Out of Order
Date: 19 Oct 2004 18:25:05 GMT
Organization: Columbia University
Lines: 30
Message-ID: <slrncnan01.3s1.fdc@sesame.cc.columbia.edu>
References: <cl29ql$dm7$1@zcars0v6.ca.nortel.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1098210305 13272 128.59.59.56 (19 Oct 2004 18:25:05 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 19 Oct 2004 18:25:05 GMT
User-Agent: slrn/0.9.8.0 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15199
On 2004-10-19, Robert Simmons <robertls@nortelnetworks.com> wrote:
: Hopefully this group is still monitored...
:
Of course.
: I have been developing a kermit script. I have found that when a run the
: script normally from a linux prompt that the output is mostly in order. But
: if I fork a process and run the script from a C++ program the output is in
: realtime for the AT responces but the script echo lines and the help text
: output is not dumped until the process is killed or dies.
:
: I notices the same order of output with the stdout redirected and captured
: to a file at the linux command prompt.
:
: Anyone know why? And how to get the output os the echo statements to be dump
: before the script dies or is killed?
:
C-Kermit was not really intended to be controlled by another process.
When you use Kermit itself as your scripting tool, which is adequate for
most purposes:
http://www.columbia.edu/kermit/ckscripts.html
you don't get the jumbled output.
For historical (and to some extent practical) reasons, there is a mixture
of buffered and unbuffered writes to stdout. If your process is reading
C-Kermit's stdout, maybe it needs to read it in unbuffered mode?
- Frank